a2000b2a1587e29dda4806363e7b76a14d431cdd,src/org/lwjgl/demo/vulkan/ColoredTriangleDemo.java,ColoredTriangleDemo,createRenderPass,#VkDevice#number#,625
Before Change
VkSubpassDescription.Buffer subpass = VkSubpassDescription.calloc(1)
.pipelineBindPoint(VK_PIPELINE_BIND_POINT_GRAPHICS)
.flags(VK_FLAGS_NONE)
.pInputAttachments(null)
.pColorAttachments(colorReference) // <- only color attachment
.pResolveAttachments(null)
.pDepthStencilAttachment(null)
.pPreserveAttachments(null);
After Change
VkSubpassDescription.Buffer subpass = VkSubpassDescription.calloc(1)
.pipelineBindPoint(VK_PIPELINE_BIND_POINT_GRAPHICS)
.flags(VK_FLAGS_NONE)
.pInputAttachments(null)
.colorAttachmentCount(colorReference.remaining())
.pColorAttachments(colorReference) // <- only color attachment
.pResolveAttachments(null)
.pDepthStencilAttachment(null)
.pPreserveAttachments(null);